export function Test3() {
    const styleObj={
        color:'yellow'
    }
    let flag=true
    return (
        <div className="area">
            <h1>3.Test:样式处理</h1>
            <div style={{color:'red'}}>style</div>
            <div style={styleObj}>对象style</div>
            <div className={'red yellow'}>class</div>
            <div className={flag?'red yellow':''}>动态class</div>
        </div>
    )
}
